import React from "react";
import Login from "../pages/Hello/Login";
import Sign from "../containers/Sign";
import Navigation from "../containers/Navigation";
import Hello from "../pages/Hello";
import Announcement from "../pages/Navigation/Announcement";
import E404 from "../pages/Error/E404";
import UserS from "../pages/Navigation/UserS";
import store from "../redux/store";
import Plan from "../pages/Navigation/Plan";


const a= [{
    path: "/navigation",element:  <Navigation store={store}/>
,children: [
        {path: "announcement",element: <Announcement/>},
        {path: "users",element: <UserS/>},
        {path: "plan",element: <Plan/>}
    ]
},{path: "/hello",element: <Hello/>,children:[
        {path:"login",element:<Login/>}, {path:"sign",element:<Sign store={store} />
            // ,children:[
            // {path:"retrieve",element:<News/>},
            // {path:"message",element:<Message/>,
            //     children:[
            //         TODO params参数
            //         {path:"detail/:id/:title",element:<Detail/>}
            //TODO search参数
            // {path:"detail/",element:<Detail/>}
            // ]
            // }
            // ]
        },
    ]},{
    path: "*",element: <E404/>
}
]
export default a
